import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download,
    upload: $upload
} = request

// 查询医疗队伍全部
export const riskMedicalTeamList = data => {
    return $get('/risk/riskMedicalTeam/list', data)
}

// 查询医疗队伍列表
export const riskMedicalTeamPage = data => {
    return $get('/risk/riskMedicalTeam/page', data)
}

// 新增医疗队伍
export const riskMedicalTeamAdd = data => {
    return $post('/risk/riskMedicalTeam/add', data)
}

// 查询医疗队伍详情
export const riskMedicalTeamDetail = id => {
    return $get('/risk/riskMedicalTeam/detail/'+ id)
}

// 更新医疗队伍
export const riskMedicalTeamUpdate = data => {
    return $post('/risk/riskMedicalTeam/update', data)
}

// 删除医疗队伍
export const riskMedicalTeamDelete = id => {
    return $post('/risk/riskMedicalTeam/delete/'+ id)
}

// 导出医疗队伍
export const riskMedicalTeamExport = (data,fileName) => {
    return $download('/risk/riskMedicalTeam/export',data, fileName)
}

// 下载模板
export const riskMedicalTeamTemplate = (data,filename) => {
  return $download('/risk/riskMedicalTeam/template',data, filename)
}

// 导入
export const riskMedicalTeamImport = (formData) => {
  return $upload('/risk/riskMedicalTeam/import', formData)
}
